package com.vhall.component.entity.interactive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 同问
 *
 * @author zhangtao
 */
@Data
@TableName("qa_same_user")
public class QaSameUserEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 提问者的用户id
     */
    @TableField("user_id")
    @JsonProperty(value = "user_id")
    private Long userId;

    /**
     * 提问ID
     */
    @TableField("question_id")
    @JsonProperty(value = "question_id")
    private Long questionId;

    /**
     * 1取消2增加
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    @JsonProperty(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    @JsonProperty(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    @JsonProperty(value = "deleted_at")
    private LocalDateTime deletedAt;

}
